import {
  observable,
  action
} from 'mobx-miniprogram'

const store = observable({
  tabBarActiveIndex: 0,
  updateTabBarActiveIndex: action(function (index) {
    this.tabBarActiveIndex = index
  })
})

export default store